<template>
  <view>
    <view class="w100 pt-8 pl-55 pr-55 fs-40 col000 fw-b mb-20" style="text-align: center;">{{ info.title || info.name }}</view>
    <view class="w100 pl-24 pr-24">
     <view v-html="info.content"></view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      info: {},
	  titleType: '',
	  id: ''
    }
  },
    onLoad(e) {
	  this.titleType = e.title;
	  this.id = e.id;
      this.getList();
	  uni.setNavigationBarTitle({
		  title: e.title+'详情'
	  });
    },
  methods: {
      getList(){
		const urlType = this.titleType == '通知公告'? 'pronotice/getById' : 'prozczx/getById';
        this.$tools.axiosFromToken('POST',urlType,{id: this.id},'加载中').then(res => {
          if(res.code != 200) return this.$tools.showtt(res.msg)
           this.info = res.data;
		   console.log(res)
        })
      }
  },
}
</script>
<style lang="scss">
	::v-deep img{
		width: 100% !important;
		height: auto !important;
	}
</style>
